package java基础.struct;

/**
 * @author IT_Jay
 * @date 2021/12/12 20:29
 */

public class Demo12 {
    public static void main(String[] args) {
        int a=1;        //初始化条件
        while (a<=100){     //条件判断
            System.out.println(a);
            a+=2;           //迭代
        }
        System.out.println("while循环结束。");
            //初始化     //条件判断 //迭代
        for (int i = 0; i <= 100; i++) {
            System.out.println(i);
        }
        System.out.println("for循环结束。");

        //快捷方式  100.for
        for (int i = 0; i < 100; i++) {

        }
    }
}
